<?php

namespace App\Http\Controllers\YApi;

//use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;

use App\Models\UsersReg;

class WxloginController extends Controller
{

	public function wxlogin()
	{
		// 获得微信登录（openid）的用户信息
		$openid = request::input('openid');
		$wxusers = UsersReg::where('wxopenid', $openid)->first();
		return $wxusers;
	}
    
}